#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
    int a;
    while (scanf("%d", &a) != EOF)
    {

        int arr[a];
        int count1 = 0;
        int count2 = 0;
        double sum = 0.0;
        for (int i = 0;i < a;i++)
        {
            scanf("%d", &arr[i]);
            if (arr[i] > 0)
            {
                sum = sum + arr[i];
                count2++;
            }
            else if (arr[i] < 0)
            {
                count1++;
            }
            else
            {

            }
        }
        if (count2 != 0)
            sum = (sum / 1.0) / count2;
        printf("%d %0.1lf", count1, sum);
    }
    return 0;
}